From: Jürg Billeter Date: Tue, 6 Dec 2011 12:36:59 +0000 (+0100) Subject: browser-plugin: Fix crash if shell is not running X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7257 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d5b4e30eb7e26e822a1af2e2b8ef97817b3abea6;p=gnome-shell.git browser-plugin: Fix crash if shell is not running --- diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c index e9f99502b..fccb0616b 100644 --- a/browser-plugin/browser-plugin.c +++ b/browser-plugin/browser-plugin.c @@ -643,7 +643,8 @@ plugin_get_shell_version (PluginObject *obj, STRINGN_TO_NPVARIANT (buffer, length, *result); out: - g_variant_unref (res); + if (res) + g_variant_unref (res); return ret; }